namespace S.M.SmartMedical.ErrorCode
{
    /// <summary>
    /// 分页响应
    /// </summary>
    /// <typeparam name="T">数据类型</typeparam>
    public class PageResponse<T>
    {
        /// <summary>
        /// 当前页码
        /// </summary>
        public int CurrentPage { get; set; }

        /// <summary>
        /// 每页数量
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 总记录数
        /// </summary>
        public int TotalCount { get; set; }

        /// <summary>
        /// 数据列表
        /// </summary>
        public List<T> Items { get; set; } = new();
    }
}